/*
 * @ModuleName:
 * @Author: zhuzhaofeng
 * @Date: 2020-05-08 21:17:44
 */
import { menuList } from "../apis/menu";
const actions = {
  /**
   * @description: 异步获取menus并 提交更新菜单 mutations
   * @param {payload} 菜单数组
   */
  updateMenus({ commit }, payload) {
    menuList().then((res) => commit("UPDATE_MENUS", res));
  },
};
export default actions;
